home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / Papers / aSEPiA example source / Application / source / CDocumentApp.h < prev    next >
Encoding:
Text File  |  1999-06-25  |  998 b   |  33 lines  |  [TEXT/CWIE]

  1. // =================================================================================
  2. //    CDocumentApp.h                     ©1996-1998 Metrowerks Inc. All rights reserved.
  3. // =================================================================================
  4.  
  5. #pragma once
  6.  
  7. #include <PP_Prefix.h>
  8. #include <LDocApplication.h>
  9.  
  10.  
  11. class CDocumentApp : public PP_PowerPlant::LDocApplication {
  12.  
  13. public:
  14.                             CDocumentApp();            // constructor registers PPobs
  15.     virtual                 ~CDocumentApp();        // stub destructor
  16.  
  17. protected:
  18.  
  19.     virtual void            StartUp();                // override startup functions
  20.     
  21.     // this overriding method is called when the FileMenu ->Open items is selected.
  22.     virtual void            OpenDocument( FSSpec *inMacFSSpec );
  23.     
  24.     // this method creates a new instance of a document
  25.     virtual PP_PowerPlant::LModelObject *    MakeNewDocument();
  26.     
  27.     // this method displays the StandardFile Open dialog
  28.     virtual void            ChooseDocument();
  29.     
  30.     // this method prints the open document
  31.     virtual void            PrintDocument( FSSpec *inMacFSSpec );
  32. };
  33.